package com.lx.mailweb.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.lx.mailweb.domain.Txl;
import com.lx.mailweb.persistence.mapper.BaseDaoMapper;

@Controller
public class ShowController {
	@Autowired
	private BaseDaoMapper baseDaoMapper;

	@RequestMapping(value = {"/show" })
	public String show(HttpServletRequest request, Model model) {

		List<Txl> zjlList = baseDaoMapper.getZjl();
		model.addAttribute("zjlList", zjlList);
		return "show";
	}

}
